package xdev.vt.dummies;

import org.junit.Ignore;

@Ignore
public class MyVirtualTable2 extends xdev.vt.VirtualTable implements xdev.lang.StaticInstanceSupport
{
	public final static xdev.vt.VirtualTableColumn<Integer>			id;
	public final static xdev.vt.VirtualTableColumn<String>			Name;

	
	static
	{
		id = new xdev.vt.VirtualTableColumn("id");
		id.setType(xdev.db.DataType.INTEGER);
		id.setNullable(false);
		id.setPreferredWidth(0);
		id.setTextFormat(xdev.ui.text.TextFormat.getPlainInstance());
		id.setVisible(false);
		id.setDefaultValue(0);
		
		Name = new xdev.vt.VirtualTableColumn("Name");
		Name.setType(xdev.db.DataType.VARCHAR,50);
		Name.setNullable(true);
		Name.setDefaultValue("hallo");
		Name.setPreferredWidth(100);
		Name.setTextFormat(xdev.ui.text.TextFormat.getPlainInstance());
	}
	

	public MyVirtualTable2()
	{
		super(MyVirtualTable2.class.getName(),"myVirtualTable2",id,Name);
		
		setPrimaryColumn(id);
		
		//addIndex(new Index("SYS_PK_10048",IndexType.PRIMARY_KEY,"id"));
		
	}
	
	public final static MyVirtualTable2	VT	= new MyVirtualTable2();
	

	public static MyVirtualTable2 getInstance()
	{
		return VT;
	}
}
